<?php

namespace app\admin\validate;

use think\Validate;

class Keywords extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'username' => 'require|regex:\w{3,30}',
    ];

    /**
     * 字段描述
     */
    protected $field = [
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add' => ['username', 'url', 'keyword'],
		'edit' => ['username', 'url', 'keyword'],
    ];
}
